package org.vectrics.common.db;

import java.util.ArrayList;
import java.util.Iterator;

public class ValidationProblemList extends ArrayList {

	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append("Validation problems:");
		
		Iterator iter = this.iterator();
		while (iter.hasNext()) {
			ValidationProblem problem = (ValidationProblem)iter.next();
			str.append("\r\n ** " + problem.getDescription());
		}
		
		return(str.toString());
	}
}
